import { post } from '../http'

/**
 * @description: 门店列表
 * @param data
 * @return Promise
 */
export const getSiteLeaseList = (data) => post({ url: '/siteLease/getList', data })

/**
 * @description: 添加/编辑门店
 * @param data
 * @return Promise
 */
export const addOreditSiteLease = (data) => post({ url: '/siteLease/editRentSite', data })

/**
 * @description: 门店详情
 * @param data
 * @return Promise
 */
export const getSiteLeaseDetail = (data) => post({ url: '/siteLease/siteDetail', data })

/**
 * @description: 门店的城市列表
 * @param data
 * @return Promise
 */
export const getSiteCity = (data) => post({ url: '/siteLease/getSiteCity', data })

/**
 * @description: 组织机构权限列表
 * @param data
 * @return Promise
 */
export const getSelectAuthList = (data) => post({ url: '/org/selectAuthList', data })

/**
 * @description: 根据机构ID查对应的门店详情
 * @param data
 * @return Promise
 */
export const siteDetailByOrg = (data) => post({ url: '/siteLease/siteDetailByOrg', data })

/**
 * @description: 批量复制门店配置
 * @param data
 * @return Promise
 */
export const batchSaveConfig = (data) => post({ url: '/siteLease/batchSaveConfig', data })
